/*
 * Copyright (c) 2015-2020 ACOINFO Co., Ltd.
 * All rights reserved.
 *
 * Detailed license information can be found in the LICENSE file.
 *
 * File: ms_kmod_loader.h Kernel module loader.
 *
 * Author: Jiao.jinxing <jiaojinxing@acoinfo.com>
 *
 */

#ifndef MS_KMOD_LOADER_H
#define MS_KMOD_LOADER_H

#ifdef __cplusplus
extern "C" {
#endif

ms_err_t ms_kmodule_loader_init(void);

ms_err_t ms_kmodule_load(const char *path, ms_bool_t req_sym, ms_kmodule_handle_t *moduleid);
ms_err_t ms_kmodule_unload(ms_kmodule_handle_t moduleid);
ms_ptr_t ms_kmodule_symbol(ms_kmodule_handle_t moduleid, const char *symbol);

#ifdef __cplusplus
}
#endif

#endif /* MS_KMOD_LOADER_H */
